package com.pilipili.zeus.eduService.controller;

import com.pilipili.commonutils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author Unlimited_Blade_Works
 */
@RestController
@RequestMapping("/eduService/user")
public class AdminController {

    @PostMapping("login")
    @ApiOperation(value = "用户登录")
    public Result login(){
        return Result.ok().data("token","admin");
    }

    @GetMapping("info")
    @ApiOperation(value = "用户信息")
    public Result info(){
        return Result.ok().data("roles","[admin]").data("name","admin").data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }

}
